package com.lauor.smpdb.spring.boot.autoconfigure;

import com.lauor.smpdb.SmpDataSource;
import org.springframework.beans.factory.InitializingBean;

import java.sql.SQLException;

/**
 * 数据源容器
 */
public class SmpDataSourceWrapper extends SmpDataSource implements InitializingBean {

    public SmpDataSourceWrapper() throws SQLException {}

    @Override
    public void afterPropertiesSet() throws Exception {
        super.validate();
        super.initDbPool();
    }
}
